package com.dd.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class BookssDao {

    @Value("${bookName}")
    private String bookName;
    @Value("${author}")
    private String author;
    @Value("${price}")
    private double price;
    @Value("${bookType}")
    private String bookType;

    public void showBookDao() {
        System.out.println("书名："+bookName);
        System.out.println("作者："+author);
        System.out.println("价格："+price);
        System.out.println("类别："+bookType);
    }
}
